package org.jeecg.modules.zhoupackage.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 面料表
 *
 * @author zxl
 * @since 2020/09/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class MlccFabricInfo {

    /**
     * 面料ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 面料编码
     */
    @Excel(name = "面料编号")
    private String fabricCode;

    /**
     * 供应商面料编号
     */
    @Excel(name = "供应商面料编号")
    private String gysfabriccode;

    /**
     * 供应商名称
     */
    @Excel(name = "供应商")
    @TableField(exist = false)
    private String gysname;

    /**
     * 供应商编号
     */
    private String sysuserId;

    /**
     * 面料类型ID
     */
    @Excel(name = "面料类型", replace = {"素色_1", "条纹_2", "格子_3"})
    private String fabricTypeId;

    /**
     * 是否进口：0国产，1进口
     */
    @Excel(name = "是否进口", replace = {"国产_0", "进口_1"})
    private Integer isimport;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Double paixu;

    /**
     * 状态：0上架，1删除，2下架
     */
    @Excel(name = "销售状态", replace = {"上架中_0", "已删除_1", "已下架_2"})
    private Integer status;

    /**
     * 面料产地
     */
    @Excel(name = "面料产地")
    private String fabricSource;

    /**
     * 面料品牌
     */
    @Excel(name = "面料品牌")
    private String pingpai;

    /**
     * 面料成分
     */
    @Excel(name = "面料成分")
    private String fabricContent;

    /**
     * 面料纱织
     */
    @Excel(name = "面料纱织")
    private String fabricShazhi;

    /**
     * 面料克重
     */
    @Excel(name = "面料克重")
    private String fabricWeight;

    /**
     * 面料门幅
     */
    @Excel(name = "面料门幅")
    private String menfu;

    /**
     * 颜色
     */
    @Excel(name = "面料颜色")
    private String fabriceColor;

    /**
     * 面料花型
     */
    @Excel(name = "面料花型")
    private String hua;

    /**
     * 面料季节
     */
    @Excel(name = "面料季节")
    private String season;

    /**
     * 面料图片地址
     */
    @Excel(name = "面料图片", type = 2, width = 25)
    private String fabricImg;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Double inventory;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 面料名称
     */
//    @Excel(name = "面料名称")
    private String fabricName;


    /**
     * 面料颜色ID(不用)
     */
    private String fabricColorId;

    /**
     * 面料单价
     */
    private BigDecimal fabricPrice;

    /**
     * 面料单位
     */
//    @Excel(name = "面料单位")
    private String fabricUnit;

    /**
     * 样本
     */
//    @Excel(name = "样本")
    private String fabricSample;

    /**
     * 宽
     */
    private double fabricWidth;

    /**
     * 高
     */
//    @Excel(name = "高")
    private double fabricHeight;

    /**
     * 面料组ID
     */
    private String groupId;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新人员
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 部门编码
     */
    private String sysOrgCode;

    /**
     * 默认0面料，1里布，2底领里
     */
//    @Excel(name = "面料类型")
    private Integer isMianFu;

    /**
     * 面料米数
     */
    @TableField(exist = false)
    private String mishu;

    /**
     * 面料备注
     */
    @TableField(exist = false)
    private String fabricRemark;

    /**
     * 阶梯折扣
     */
    @TableField(exist = false)
    private Double jietiZk;

    /**
     * 客户折扣
     */
    @TableField(exist = false)
    private double kehuzk;

    /**
     * 折后单价
     */
    @TableField(exist = false)
    private double afterPrice;

    /**
     * 总价
     */
    @TableField(exist = false)
    private double allPrice;

    /**
     * 面料册ID
     */
    private String bookletId;

    /**
     * 供应商编号
     */
    @TableField(exist = false)
    private String gysCode;

    /**
     * 产品id
     */
    @TableField(exist = false)
    private String productid;

    /**
     * 结算金额
     */
    @TableField(exist = false)
    private double jiesuanMpney;

    /**
     * 默认0未对账，1已对账
     */
    @TableField(exist = false)
    private Integer jiesuan;

    /**
     * 面料册关联id
     */
    @TableField(exist = false)
    private Integer bookandid;

    /**
     * 团订重做专用面料价格
     */
    @TableField(exist = false)
    private BigDecimal cprice;
}
